package util;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

import analyze.AnalyzeInfo;

public class AnalyzeUtil {
	
	public static void sortByOrder(ArrayList<AnalyzeInfo> infos){
		Collections.sort(infos, new Comparator<AnalyzeInfo>() {
	        public int compare(AnalyzeInfo a1, AnalyzeInfo a2) {
	            Integer x1 = a1.getOrder();
	            Integer x2 = a2.getOrder();
	            return x1.compareTo(x2);
	        }
	    });
	}
}
